Skip to content

Update nix files#1319

Merged
raphamorim merged 1 commit intoraphamorim:mainfrom
KaiSforza:flake
Oct 22, 2025
Merged

Update nix files#1319
raphamorim merged 1 commit intoraphamorim:mainfrom
KaiSforza:flake

Conversation

@KaiSforza
Copy link
Copy Markdown
Contributor

  • Format with alejandra and add it to all devShells
  • Use lib.fileset to get only the needed files for the build
  • Fix build inputs for Darwin
  • Make wayland and x11 optional using the package args with*
  • Create a separate terminfo output1
  • Fix nix file indentation to 2 instead of 4
  • Remove app, package already has a meta.mainProgram attribute
  • Add an overlay that can be used to override the rio package using flake-part's easyOverlay module2
  • Create separate package for msrv, stable and nightly, matching the different devShells available
  • Removed the flake = false attribute for inputs.systems
  • Create legacyPackages.rio containing four sub packages using different versions of the rust-toolchain:
    • rio.msrv - uses ./rust-toolchain.toml
    • rio.stable - uses rust-bin.stable
    • rio.nightly - uses the latest nightly rust
    • rio.default - Same as rio.msrv
  • Added /result to get rid of the nix build output file3

Footnotes

  1. https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/ri/rio/package.nix

  2. https://flake.parts/options/flake-parts-easyoverlay

  3. A simpler version of gitignore: fixes for nix output links #1233, that just adds this one line

* Format with `alejandra` and add it to all devShells
* Use `lib.fileset` to get only the needed files for the build
* Fix build inputs for Darwin
* Make `wayland` and `x11` optional using the package args `with*`
* Create a separate `terminfo` output[^1]
* Fix nix file indentation to 2 instead of 4
* Remove `app`, `package` already has a `meta.mainProgram` attribute
* Add an overlay that can be used to override the `rio` package using
  flake-part's easyOverlay module[^2]
* Create separate package for `msrv`, `stable` and `nightly`, matching
  the different `devShells` available
* Removed the `flake = false` attribute for `inputs.systems`
* Create `legacyPackages.rio` containing four sub packages using
  different versions of the rust-toolchain:
    * `rio.msrv` - uses `./rust-toolchain.toml`
    * `rio.stable` - uses `rust-bin.stable`
    * `rio.nightly` - uses the latest nightly rust
    * `rio.default` - Same as `rio.msrv`
* Added `/result` to get rid of the `nix build` output file[^3]


[^1]: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/ri/rio/package.nix
[^2]: https://flake.parts/options/flake-parts-easyoverlay
[^3]: A simpler version of raphamorim#1233, that _just_ adds this one line
Copy link
Copy Markdown
Contributor

@TornaxO7 TornaxO7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I thought I already approved it.

Copy link
Copy Markdown
Owner

@raphamorim raphamorim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!

@raphamorim raphamorim merged commit 0bb5b7f into raphamorim:main Oct 22, 2025
7 checks passed
raphamorim pushed a commit that referenced this pull request Oct 29, 2025
* Format with `alejandra` and add it to all devShells
* Use `lib.fileset` to get only the needed files for the build
* Fix build inputs for Darwin
* Make `wayland` and `x11` optional using the package args `with*`
* Create a separate `terminfo` output[^1]
* Fix nix file indentation to 2 instead of 4
* Remove `app`, `package` already has a `meta.mainProgram` attribute
* Add an overlay that can be used to override the `rio` package using
  flake-part's easyOverlay module[^2]
* Create separate package for `msrv`, `stable` and `nightly`, matching
  the different `devShells` available
* Removed the `flake = false` attribute for `inputs.systems`
* Create `legacyPackages.rio` containing four sub packages using
  different versions of the rust-toolchain:
    * `rio.msrv` - uses `./rust-toolchain.toml`
    * `rio.stable` - uses `rust-bin.stable`
    * `rio.nightly` - uses the latest nightly rust
    * `rio.default` - Same as `rio.msrv`
* Added `/result` to get rid of the `nix build` output file[^3]


[^1]: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/ri/rio/package.nix
[^2]: https://flake.parts/options/flake-parts-easyoverlay
[^3]: A simpler version of #1233, that _just_ adds this one line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants